import request from '@/utils/request'
export function userLogin(data) {
    return request({
        url: '/user/login',
        method: 'post',
        data
    })
}

export function pLogin(data) {
    return request({
        url: '/user/login',
        method: 'post',
        data
    })
}

export function sroom(data) {
    return request({
        url: '/StuDorm/selectById',
        method: 'get',
        params: data
    })
}

export function payment(data) {
    return request({
        url: '/Admin/selectPayState',
        method: 'get',
        params:data
    })
}

export function pay(data) {
    return request({
        url: '/user/payOrder',
        method: 'post',
        params:data
    })
}

//绿色通道
export function GreenInsert(data) {
    return request({
        url: '/Green/insert',
        method: 'post',
        data
    })
}